package hcn.protocol.brandnew.dengji.jibendangan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 黑名单信息监测-响应消息(成功) - ODS_02040019_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class SubmitReviewResponse {

    /**
     * 黑名单
     */
    @XmlElement(name = "BlackPatient")
    private BlackPatient blackPatient;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class BlackPatient {

        /**
         * 限制方式
         */
        @XmlElement(name = "RestrictType")
        private Byte restrictType;
        /**
         * 截止日期
         */
        @XmlElement(name = "RestrictDay")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date restrictDay;
        /**
         * 欠费金额
         */
        @XmlElement(name = "ArrearageCash")
        private String arrearageCash;
        /**
         * 提醒语句
         */
        @XmlElement(name = "WarnInfo")
        private String warnInfo;
        /**
         * 黑名单标记
         */
        @XmlElement(name = "BlackPatientFlag")
        private String blackPatientFlag;
    }

}
